package com.hsq.commons.util;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @since 2001-12-18
 * @author lijun
 * @version 1.0
 * @Copyright ? 2009 LinkCm Co. Ltd. All right reserved.
 */

public class B extends A{
	
	
	
	static{System.out.println("B2");};
	{System.out.println("B1");};
	B(){
		System.out.println("B3");
		c();
	}
	
	

	
	
	public void c(){
		System.out.println("B4");
	}
	
	public void d(List list){
		list.add("2");
		list = null;
		System.out.println("B4");
	}
	
	public static void main(String[] args){
		
//		//A b ;
//		System.out.println("==========");
//		B b = new B();
//		List list = new ArrayList();
//		list.add("1");
//		b.d(list);
//		System.out.println(list);
		String a= "aa";
		String b= "aa";
		String c= new String("aa");
		System.out.println(a==b);
		System.out.println(a==c);
		c = b;
		System.out.println(a==c);
		
		
	}

}
